<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
   <head>   
    	<title></title>   
		<s:include value="../../common/source.jsp"></s:include>			
  </head> 
  <body>
  <div class="body">
   <div class="content ui-sortable">
          <div class="list">
         	学生信息
          	 </div>
          	 </div>
          	 <br/> 
          	  <br/> 
          	   <hr style="background-color:#cfe1f9;height:1px;"/>
    <form class="sui-form form-horizontal sui-validate" action="teacher/modifyStu.action" method="post">
 <table class="sui-table table-vzebra table0" >
                    <tbody>
                    <tr>
                      <td>姓名</td>
                        <td><input type="text" class="input-large"  name="st.name" data-rules="required" value="<s:property value="stude.name"/>"></td>
                      </tr>
                      
                       <tr>
                      <td>学号</td>
                        <td> <input type="text" class="input-large"  name="st.number" data-rules="required" value="<s:property value="stude.number"/>"></td>
                      </tr>
                      
                      <tr>
                        <td>性别</td>
                        <td><div class="controls">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="<s:property value="stude.sex"/>" name="st.sex" type="hidden"><i class="caret" ></i><span>
                  <s:if test="stude.sex==0">男</s:if>
                  <s:else>女</s:else>
                  </span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>男</a></li>
                   <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>女</a></li>
                </ul>
              </span>
            </span>
             </div> </td>
                      </tr>
            
                      <tr>
                        <td>学位</td>
                        <td><div class="controls">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="<s:property value="stude.degree"/>" name="st.degree" type="hidden"><i class="caret" ></i><span>
                  <s:if test="stude.degree==0">硕士</s:if>
                  <s:else>博士</s:else>
                  </span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>硕士</a></li>
                   <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>博士</a></li>
                </ul>
              </span>
            </span>
             </div> </td>
                      </tr>
                      
                      <tr>
                        <td>是否毕业</td>
                        <td><div class="controls">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="<s:property value="stude.isleave"/>" name="st.isleave" type="hidden"><i class="caret" ></i><span>
                  <s:if test="stude.leave==0">是</s:if>
                  <s:else>否</s:else>
                  </span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>是</a></li>
                   <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>否</a></li>
                </ul>
              </span>
            </span>
             </div> </td>
                      </tr>
                      
                      <tr>
                        <td>毕业时间</td>
                        <td> <input type="text" class="input-large" name="dates" data-toggle="datepicker" data-rules="required" value="<s:date name="stude.leaveDate"  format="yyyy-MM-dd" />"></td>
                      </tr> 
                      
                      <s:if test="power!=1">
                      
                      <tr>
                      <td>课外科技项目</td>
                        <td><div class="controls">
                        <s:iterator value="stup">               
                       <a href="teacher/oneStuPro.action?proId=<s:property value="stuproId"/>"> <s:property value="proname"/></a>
                        </s:iterator>
                        <a href="teacher/addStuPro1.action?stuId=<s:property value="stude.stuId"/>">添加</a>
                        </div></td>
                      </tr>
                      
                      <tr>
                      <td>课外科技奖励</td>
                        <td><div class="controls">
                        <s:iterator value="stua">               
                       <a href="teacher/oneStuAwa.action?awaId=<s:property value="stuawaId"/>"> <s:property value="awaname"/></a>
                        </s:iterator>
                        <a href="teacher/addStuAwa1.action?stuId=<s:property value="stude.stuId"/>">添加</a>
                        </div></td>
                      </tr>
                      
                      <tr>
                      <td>学位论文
                      
                      <s:if test="studeg.degaward==0">（国优）</s:if>
                      <s:elseif test="studeg.degaward==1">（省优）</s:elseif>
                      <s:elseif test="studeg.degaward==2">（校优）</s:elseif>
                      <s:elseif test="studeg.degaward==3"></s:elseif>
                      
                      </td>
                        <td><div class="controls">
                        <s:if test="studeg.degId==null">
                        <a href="teacher/uploadDeg1.action?stuId=<s:property value="stuId"/>">上传</a></s:if>
                        <s:else>
                        <a href="teacher/down.action?nameCom=<s:property value="studeg.upload"/>">下 载</a>
                        </s:else>
                        </div></td>
                      </tr>   
                      <input type="text" name="st.stuId" value="<s:property value="stude.stuId"/>" style="display:none;">  
                      </s:if>                                  
                    </tbody>
                  </table>
                  <s:if test="power!=1">
   <div class="control-group button0">
          <label class="control-label v-top"></label>
          <div class="controls">
            <button type="submit" class="sui-btn btn-primary">提交</button>            
            <button type="reset" class="sui-btn">重置</button>
          </div>
        </div>
        </s:if>
  </form>
   </div>
   <script>
		if("<s:property value="suc"/>"=="success")
		{
			var msg="修改成功！！！！";
			
			alert(msg);
			
		}
		if("<s:property value="suc"/>"=="success1")
		{
			var msg="添加课外科技项目成功！！！！";
			
			alert(msg);
			
		}
		if("<s:property value="suc"/>"=="success2")
		{
			var msg="添加课外科技奖励成功！！！！";
			
			alert(msg);
			
		}
		</script>
  </body> 
</html>
